import request from '@/utils/request'

// 获取用户节点列表
export function selectUserOptions(masterId) {
  return request({
    url: '/agency/meterage/detail/selectUserOptions/' + masterId,
    method: 'get'
  })
}

// 查询施工期列表
export function listDetailConstruction(query) {
  return request({
    url: '/agency/meterage/detail/listDetailConstruction',
    method: 'get',
    params: query
  })
}

// 查询施工期合同清单列表--新增
export function selectConstructionList(query) {
  return request({
    url: '/agency/meterage/detail/selectConstructionList',
    method: 'get',
    params: query
  })
}

// 新增施工期清单
export function saveDetailConstruction(data) {
  return request({
    url: '/agency/meterage/detail/saveDetailConstruction',
    method: 'post',
    params: data
  })
}

// 查询施工期清单详细
export function getDetailConstruction(id) {
  return request({
    url: '/agency/meterage/detail/getDetailConstruction/' + id,
    method: 'get'
  })
}

// 修改代建计量-施工期详情
export function updateDetailConstruction(data) {
  return request({
    url: '/agency/meterage/detail/updateDetailConstruction',
    method: 'post',
    data: data
  })
}

// 删除代建计量-施工期详情
export function deleteDetailConstruction(ids) {
  return request({
    url: '/agency/meterage/detail/deleteDetailConstruction/' + ids,
    method: 'delete'
  })
}

// 查询冬休期列表
export function listDetailWinter(query) {
  return request({
    url: '/agency/meterage/detail/listDetailWinter',
    method: 'get',
    params: query
  })
}

// 查询冬休期合同清单列表--新增
export function selectWinterList(query) {
  return request({
    url: '/agency/meterage/detail/selectWinterList',
    method: 'get',
    params: query
  })
}

// 新增冬休期清单
export function saveDetailWinter(data) {
  return request({
    url: '/agency/meterage/detail/saveDetailWinter',
    method: 'post',
    params: data
  })
}

// 查询冬休期清单详细
export function getDetailWinter(id) {
  return request({
    url: '/agency/meterage/detail/getDetailWinter/' + id,
    method: 'get'
  })
}

// 修改代建计量-冬休期详情
export function updateDetailWinter(data) {
  return request({
    url: '/agency/meterage/detail/updateDetailWinter',
    method: 'post',
    data: data
  })
}

// 删除代建计量-冬休期详情
export function deleteDetailWinter(ids) {
  return request({
    url: '/agency/meterage/detail/deleteDetailWinter/' + ids,
    method: 'delete'
  })
}

// 查询缺陷责任期列表
export function listDetailDefect(query) {
  return request({
    url: '/agency/meterage/detail/listDetailDefect',
    method: 'get',
    params: query
  })
}

// 查询缺陷责任期合同清单列表--新增
export function selectDefectList(query) {
  return request({
    url: '/agency/meterage/detail/selectDefectList',
    method: 'get',
    params: query
  })
}

// 新增缺陷责任期清单
export function saveDetailDefect(data) {
  return request({
    url: '/agency/meterage/detail/saveDetailDefect',
    method: 'post',
    params: data
  })
}

// 查询缺陷责任期清单详细
export function getDetailDefect(id) {
  return request({
    url: '/agency/meterage/detail/getDetailDefect/' + id,
    method: 'get'
  })
}

// 修改代建计量-缺陷责任期详情
export function updateDetailDefect(data) {
  return request({
    url: '/agency/meterage/detail/updateDetailDefect',
    method: 'post',
    data: data
  })
}

// 删除代建计量-缺陷责任期详情
export function deleteDetailDefect(ids) {
  return request({
    url: '/agency/meterage/detail/deleteDetailDefect/' + ids,
    method: 'delete'
  })
}

// 查询其他支付项目列表
export function listDetailOther(query) {
  return request({
    url: '/agency/meterage/detail/listDetailOther',
    method: 'get',
    params: query
  })
}

// 同步其他支付项目里的固定值
export function syncDetailOtherItem(masterId) {
  return request({
    url: '/agency/meterage/detail/syncDetailOtherItem/' + masterId,
    method: 'get'
  })
}

// 查询其他支付项目详细
export function getDetailOther(id) {
  return request({
    url: '/agency/meterage/detail/getDetailOther/' + id,
    method: 'get'
  })
}

// 修改代建计量-其他支付项目详情
export function updateDetailOther(data) {
  return request({
    url: '/agency/meterage/detail/updateDetailOther',
    method: 'post',
    data: data
  })
}
